﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true" CodeFile="my_sendmsg.aspx.cs" Inherits="my_cmember_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div class="apply">
  <div class="apply2">
   <%-- <uc_left_m:left_menu ID="left_m2" runat="server" />--%>
            <div class="myul_r">
                <div class="mod_admin_main">
                    <div class="hd_admin">
                        <strong>站内私信</strong></div>
                    <div class="admin_tab_box1 top20">
                        <div class="b_line">                                
 
<p><div class="top2"><label class="bold green1">标题：</label>
<input  type="textbox"  Width="400px" MaxLength="100"  id="txtTitle" name="txtTitle" value=" " /></div></p>
<input  type="hidden"   id="hiduserid" name="hiduserid" value="<%=userid%>" /></div></p>

<p><div class="top2"><label class="bold green1">内容：</label><br />
<textarea id="txtnewsdis" name="txtnewsdis" cols="80" rows="12" > </textarea>
</div></p>    <div class="sh_bnt top2">
                 <a href="javascript:history.go(-1);">返回</a>
              </div> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick="javascript:checkFrmSubmit(<%=userid%>);">发送</a>
<%--<asp:Button ID="btn_submit" runat="server" Text="发送"  OnClick="btn_submit_Click" />--%>
</div>
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
   <script language="javascript" type="text/javascript">
       function checkFrmSubmit(userid) {
           if (jQuery('#txtTitle').val().length < 1) {
               alert("标题过短!"); return;
           }
           else if (jQuery('#txtnewsdis').val().length < 1) {
               alert("内容过短!"); return;
           }
           else {
              
               jQuery('form').attr("action", "/Ajax/Otsql.ashx?t=add_usermsg&userid="+userid).submit();
           }
       }
    </script>
</asp:Content>